package org.lmj.dos.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
@Table(name="orders")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private Long orderNo;

    private double payment;

    private int paymentType;

    private int postage;

    private int status;

    private String paymentTime;

    private String sendTime;

    private String endTime;

    private String closeTime;

    private int createTime;

    private Long orderDetailsId;

    private int shippingId;

    private String shippingVo;
}
